package D1112;


public abstract class Person {
    String name;
    public abstract void say();
}
class Teacher extends Person {
    @Override
    public  void say(){
        System.out.println("老师提问问题");
    }
    public void Teach(){
        System.out.println("教师在讲课");
    }
}
class Student extends Person {

    @Override
    public  void say(){
        System.out.println("学生回答问题");

    }
    public  void playGame(){
        System.out.println("学生在玩游戏");
    }
}
